import {Authority} from '../request'

const {get, post} = Authority

// 获取仓库
export const getStorehouse = params => get('/erp/storehouse/v1/queryList', {params})
// 获取仓库选择列表
export const getStorehouseSelectList = params => get('/erp/storehouse/v1/querySelectList', {params})

// 获取货架
export const getShelves = params => get('/erp/shelves/v1/queryList', {params})
// 获取货架选择列表
export const getShelvesSelectList = params => get('/erp/shelves/v1/querySelectList', {params})

// 获取货位
export const getLocation = params => get('/erp/goodsAllocation/v1/queryList', {params})
// 获取货位选择列表
export const getLocationSelectList = params => get('/erp/goodsAllocation/v1/queryList', {params})

// 新增、编辑仓库
export const addOrUpdateStorehouse= params => post('/erp/storehouse/v1/addOrUpdate', params)

// 新增货架
export const addShelves = params => post('/erp/shelves/v1/add', params)
// 编辑货架
export const updateShelves = params => post('/erp/shelves/v1/update', params)
// 编辑货位
export const updateLocation = params => post('/erp/goodsAllocation/v1/update', params)
// 新增货位
export const addLocation = params => post('/erp/goodsAllocation/v1/add', params)
